﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MSBDATAModel;

public partial class Admin_XemGiaoDichLM : System.Web.UI.Page
{
    MSBDATAEntities entities = new MSBDATAEntities();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GridView1.DataSource = from g in entities.GIAO_DICH_NGAN_HANG
                                   select new
                                   {
                                       LienMinhGD = g.TAI_KHOAN_LIEN_MINH.MaGiaoDich,
                                       NgayGD = g.ThoiGianGD,
                                       BandID = g.MaTKNganHang,
                                       LBankID = g.MaTKLienMinh,
                                       LoaiGD = g.C_LOAI_GD_NGAN_HANG.TenLoaiGD,
                                       SoTien = g.SoTien,
                                       MaTienTe = g.C_TIEN_TE.MaTienTe,
                                       TyGia = g.C_TY_GIA.TyGia,
                                       KetQua = g.C_KET_QUA_GD_NGAN_HANG.TenKetQuan
                                   };
            GridView1.DataBind();
        }
    }
}